import java.util.Scanner;

public class towork2 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int sum=0;
        int n= scanner.nextInt();
            if(2024%n==0){
                sum=2024/n;
            }
            else
                sum=(int)(2024/n)+1;
        System.out.println(sum);
    }
}
